<?php
/*
 * @author Kilian Marjew (kilian@marjew.nl)
 * @url http://genusapis.marjew.nl/
 */
 
require_once('GenusAPIs/GenusApis.php');
include('database_inc.php');
$db = mysql_connect($server,$gebruikersnaam, $password);
mysql_select_db($database, $db);
session_start();
header('Content-Type: text/html; charset=utf-8');

 
// Declare oauth_consumer
 
$oOAuthConsumer = new OAuthConsumer("MjEwNV-jK9CigmbdQ_zJa-FU8qDy", "MjEwNV_8vv9S3vRZwSLVItIrsZwu");
 
// Init GenusApis
 
$oGenusApis = new GenusApis($oOAuthConsumer);

$sql = "SELECT * FROM users WHERE hyvesID = '60988227cc636732'";
$result2 = mysql_query($sql, $db);
$regel2 = mysql_fetch_array($result2);
$oAccessToken = unserialize($regel2['hyvesAccessTokenObject']);

		$oXml = $oGenusApis->doMethod("friends.get", array(), $oAccessToken);
		echo "<pre>";
		print_r($oXml);
		echo "</pre>";
		
$oXml = $oGenusApis->doMethod("users.get", array("userid" => "c771d39ca887c926"), $oAccessToken);
		echo "<pre>";
		print_r($oXml);
		echo "</pre>";
?>